package models;

import javax.persistence.Entity;

import play.db.jpa.Model;
import ch.bfh.abcm.rems.sensors.tinkerforge.TFSensorType;

@Entity
public class History extends Model {

    private long timeStamp;
    private int value;
    private TFSensorType sensorType;

    public History() {
    }

    public History(long timeStamp, int value, TFSensorType sensorType) {
        super();
        this.timeStamp = timeStamp;
        this.value = value;
        this.sensorType = sensorType;
    }

    public long getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(long timeStamp) {
        this.timeStamp = timeStamp;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public TFSensorType getSensorType() {
        return sensorType;
    }

    public void setSensorType(TFSensorType sensorType) {
        this.sensorType = sensorType;
    }

    @Override
    public String toString() {
        return "History [timeStamp=" + timeStamp + ", value=" + value + ", sensorType=" + sensorType + "]";
    }

}
